package cn.demo.mapper;

import cn.demo.entity.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {
    int  addBook(Book book);
    int  delBookByid(Integer id);
    Book  getBookById(Integer id);
    List<Book> getAllBook();

}
